<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>表单输入绑定</title>
</head>

<body>
    <div id="app">
        <p>Multiline message is:</p>
        <p style="white-space: pre-line;">{{ message }}</p>
        <textarea v-model="message" placeholder="add multiple lines"></textarea>

    </div>

    <script type="module">
        import Vue from '../vue.esm.browser.js'

        const app = new Vue({
            el: '#app',
            data: {
                message: 'Hello World!'
            }
        })
    </script>
</body>

</html>